package com.supcon.exchangedata.repository.slave3;

import com.supcon.exchangedata.pojo.entity.mysql.operation.sw.SwStatistOtherParametersMonth;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.transaction.annotation.Transactional;

public interface SwStatistOtherParametersMonthInfo extends JpaRepository<SwStatistOtherParametersMonth, Long> {

    /**
     * 根据月份查询
     */
    @Transactional
    @Query(nativeQuery = true, value = "SELECT * FROM sw_statist_other_parameters_month WHERE month_key = ?1")
    SwStatistOtherParametersMonth findByTime(String time);
}
